//
//  YYECourseCollectionReusableView.m
//  YuYingEDU
//
//  Created by 胡波 on 2017/12/29.
//  Copyright © 2017年 胡波. All rights reserved.
//

#import "YYECourseCollectionReusableView.h"

@implementation YYECourseCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        
        self.nameLabel = [[UILabel alloc]init];
        self.nameLabel.textColor = [UIColor blackColor];
        self.nameLabel.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.nameLabel];
        
    }
    return self;
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    [self.nameLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.left).offset(20);
        make.top.bottom.equalTo(self);
    }];
    
}

@end
